from yolov8detect import detect_defects
from generate_report import generate_pdf_report

image_path = "D:\\lab\\detect\\inclusion_1.jpg"

defects = detect_defects(image_path)
generate_pdf_report("D:\\lab\\detect\\report\\reportpdf\\defect_report.pdf", "D://lab//detect//report//predict//predict//inclusion_1.jpg", defects)

